package org.tea.inventory.db.dao;

import org.tea.inventory.db.domain.AlumniWorkerWelfare;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface AlumniWorkerWelfareMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(AlumniWorkerWelfare record);

    int insertSelective(AlumniWorkerWelfare record);

    AlumniWorkerWelfare selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(AlumniWorkerWelfare record);

    int updateByPrimaryKey(AlumniWorkerWelfare record);

    List<AlumniWorkerWelfare> querySelective(AlumniWorkerWelfare welfare);

    void insertWelfareBatch(@Param("list") List<AlumniWorkerWelfare> listWelfare);

    /**
     * 活动开始后是否发过弹幕
     * @param employeeNo 员工号
     * @param startTime 活动开始时间
     * @return 次数
     */
    int isReasond(@Param("employeeNo") String employeeNo, @Param("startTime")Date startTime);
}